<template>
  <el-card class="card">
    <el-form :model="form"
             inline
             label-width="120px">
      <el-form-item label="事件标题">
        <el-input v-model="form.title"
                  placeholder="请填写事件标题"></el-input>
      </el-form-item>
      <el-form-item label="事件地址">
        <el-input v-model="form.address"
                  placeholder="请填写事件地址"></el-input>
      </el-form-item>
      <el-form-item label="事件上报人">
        <el-input v-model="form.incidentReporter"
                  placeholder="请填写上报人姓名"></el-input>
      </el-form-item>
      <el-form-item label="事件时间">
        <el-date-picker v-model="form.eventTime"
                        type="date"
                        placeholder="选择日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary">搜索</el-button>
      </el-form-item>
    </el-form>
    <el-tabs type="border-card">
      <el-tab-pane label="全部事件"></el-tab-pane>
      <el-tab-pane label="餐饮事件"></el-tab-pane>
      <el-tab-pane label="商贩事件"></el-tab-pane>
      <el-tab-pane label="违章事件"></el-tab-pane>
      <el-tab-pane label="PM2.5事件"></el-tab-pane>
    </el-tabs>
  </el-card>
</template>

<script>
export default {
  data() {
    return {
      form: {
        title: "",
        address: "",
        eventTime: "",
        incidentReporter: "" // 事件上报人
      }
    };
  }
};
</script>

<style scoped>
.card {
  width: 62vw;
  margin: 0 auto;
}
</style>